import { createApp } from "vue";
import { createPinia } from "pinia";
import { usePersist } from "pinia-use-persist";
import "virtual:svg-icons-register";
// Toast
import "vant/es/toast/style";
// Dialog
import "vant/es/dialog/style";
// Notify
import "vant/es/notify/style";
// ImagePreview
import "vant/es/image-preview/style";

import "vant/es/image-preview/style";
import SvgIcon from "@/components/SvgIcon/index.vue";

import App from "./App.vue";
import router from "./router";

const app = createApp(App as any);
const pinia = createPinia();
pinia.use(usePersist);
app.use(router);
app.use(pinia);

app.mount("#app");
app.component("SvgIcon", SvgIcon);
